export const STATE_OPTIONS = [
  { label: '启用', value: 0 },
  { label: '禁用', value: 1 },
];
export const TYPE_OPTIONS = [
  { label: '圆形', value: 0 },
  { label: '矩形', value: 1 },
  { label: '多边形', value: 2 },
];

// 充电站管理相关枚举
export const SUPPORT_OPTIONS = [
  { label: '不支持', value: 0 },
  { label: '支持', value: 1 },
];

// 运营线路管理相关枚举
export const LINE_TYPE_OPTIONS = [
  { label: '主线路', value: 0 },
  { label: '回货线路', value: 1 },
];

export const PLATE_COLOR_MAP: any = {
  1: '蓝色',
  2: '黄色',
  3: '黑色',
  4: '白色',
  5: '绿色',
  6: '黄绿色',
  8: '农黄色',
  9: '其他',
};

// 物料类型
export const MATERIAL_TYPE_OPTIONS = [
  { label: '沫煤', value: 0 },
  { label: '风化煤', value: 1 },
  { label: '混煤', value: 2 },
  { label: '粉煤', value: 3 },
  { label: '焦煤', value: 4 },
  { label: '焦炭', value: 5 },
  { label: '二八块', value: 6 },
  { label: '三八块', value: 7 },
  { label: '页岩', value: 100 },
  { label: '熟料', value: 101 },
  { label: '铁精粉', value: 102 },
  { label: '砂子', value: 103 },
  { label: '水洗砂', value: 104 },
  { label: '玄武岩', value: 105 },
  { label: '烧结矿', value: 106 },
  { label: '球团矿', value: 107 },
  { label: '石灰石', value: 108 },
  { label: '生铁', value: 109 },
  { label: '铁矿粉', value: 110 },
  { label: '水渣', value: 111 },
  { label: '矿渣粉末', value: 112 },
  { label: '其他', value: 999 },
];

export const MATERIAL_TYPE_MAP: any = {
  0: '沫煤',
  1: '风化煤',
  2: '混煤',
  3: '粉煤',
  4: '焦煤',
  5: '焦炭',
  6: '二八块',
  7: '三八块',
  100: '页岩',
  101: '熟料',
  102: '铁精粉',
  103: '砂子',
  104: '水洗砂',
  105: '玄武岩',
  106: '烧结矿',
  107: '球团矿',
  108: '石灰石',
  109: '生铁',
  110: '铁矿粉',
  111: '水渣',
  112: '矿渣粉末',
  999: '其他',
};

// 车辆实时状态
export const VEHICLE_STATE_MAP: any = {
  0: '离线',
  1: '运行',
  2: '停止',
  3: '不定位',
  4: '报警',
};

// 趟次状态
export const TRIP_STATE_OPTIONS = [
  { label: '已派单', value: 0 },
  { label: '空载', value: 1 },
  { label: '装货中', value: 2 },
  { label: '重载', value: 3 },
  { label: '卸货中', value: 4 },
  { label: '已卸货完成', value: 5 },
  { label: '已完成', value: 99 },
  { label: '未分配', value: 10000 },
];

// 趟次状态
export const TRIP_STATE_MAP: any = {
  0: '已派单',
  1: '空载',
  2: '装货中',
  3: '重载',
  4: '卸货中',
  5: '已卸货完成',
  99: '已完成',
  10000: '未分配',
};

// 磅单类型
export const WEIGHT_TYPE_OPTIONS = [
  { label: '普通', value: 0 },
  { label: '特殊', value: 1 },
  { label: '紧急', value: 2 },
];

export const WEIGHT_TYPE_MAP: any = {
  0: '普通',
  1: '特殊',
  2: '紧急',
};

export const LEVEL_OPTIONS = [
  { label: '普通', value: 0 },
  { label: '优秀', value: 1 },
];

export const LEVEL_MAP: any = {
  0: '普通',
  1: '优秀',
};

export const BOOLEAN_OPTIONS = [
  { label: '是', value: 1 },
  { label: '否', value: 0 },
];

export const BOOLEAN_MAP: any = {
  1: '是',
  0: '否',
};

export const CHARGE_TYPE_OPTIONS = [
  { label: '直流充电桩', value: 0 },
  { label: '交流充电桩', value: 1 },
  { label: '混合充电桩', value: 2 },
];

export const CHARGE_TYPE_MAP: any = {
  0: '直流充电桩',
  1: '交流充电桩',
  2: '混合充电桩',
};

export const CHARGE_GUN_STATE_OPTIONS = [
  { label: '离线', value: 0 },
  { label: '空闲', value: 1 },
  { label: '充电中', value: 2 },
  { label: '故障', value: 9 },
];

export const CHARGE_GUN_STATE_MAP: any = {
  0: '离线',
  1: '空闲',
  2: '充电中',
  9: '故障',
};

export const BATTERY_TYPE_OPTIONS = [
  { label: '磷酸铁锂电池', value: 0 },
  { label: '锂电池', value: 1 },
];

export const BATTERY_TYPE_MAP: any = {
  0: '磷酸铁锂电池',
  1: '锂电池',
};

export const CHECK_TYPE_OPTIONS = [
  { label: '按吨', value: 0 },
  { label: '按方', value: 1 },
];

export const CHECK_TYPE_MAP: any = {
  0: '按吨',
  1: '按方',
};
